package com.swp.oa.sys.dao;


import java.util.List;

import com.swp.oa.sys.pojo.Department;
import com.swp.oa.sys.pojo.DepartmentUser;
import com.swp.oa.sys.pojo.DepartmentUserKey;
import com.swp.oa.sys.pojo.User;

public interface IDepartmentUserDao {
    int deleteByPrimaryKey(DepartmentUserKey key);

    int insert(DepartmentUser record);

    int insertSelective(DepartmentUser record);

    DepartmentUser selectByPrimaryKey(DepartmentUserKey key);

    int updateByPrimaryKeySelective(DepartmentUser record);

    int updateByPrimaryKey(DepartmentUser record);
    
    int deleteByUserId(String userid);
    
    int deleteByDepartmentId(String departmentid);
    
    User selectDepartmentsByUserId(String userid);
    
    Department selectUsersByDepartmentId(String departmentid);
        
    Department selectUsersByDepartmentIds(String[] deptIds);
    
    List<DepartmentUser> selectByDepartmentIds(String[] deptIds);
    
    DepartmentUser selectByUserId(String userId);
}